{include file="common/header.tpl"}
<section class="main">	
    <article class="right-col">
    	<h2><a href="{$back}">{$language.title.contract}</a> &raquo; {$language.ahref.add}</h2>
        <form name="frmAdd" id="frmAdd" method="post" enctype="multipart/form-data" action="{$smarty.const.HOST_BACKEND}contract/save" class="ui">  
        	      	
            <ul>
            	<li>
            	<input type="hidden" name="personalid" id="personalid" value="{if isset($personalid)} {$peronalid}{/if}"/>
                </li>
            	{if isset($smarty.session.CONTRACT_ERROR)}
                	<li class="error">
                    	{include file="common/error.tpl" errors=$smarty.session.CONTRACT_ERROR}
                    </li>
                {/if}            	
                <li>
                	<label for="type">{$language.label.type}:</label>
                    <div class="txt">
						<select name="type">
	                	{html_options options=$language.options.contract }
						</select>
                	</div>
                </li>
				<li>
                	<label for="national">{$language.label.national}:</label>
                    <div class="txt">
						<select name="national" class="autoload" id="national">
	                	{html_options options=$arrNational }
						</select>
                	</div>
                </li> 
				<li>
                	<label for="name">{$language.label.league}:</label>
                    <div class="txt">
						<select name="league" id="league" class="autoload">
	                	{html_options options=$arrLeague }
						</select>
                	</div>
                </li> 
				<li>
                	<label for="name">{$language.label.clubid}:</label>
                    <div class="txt">
						<select name="clubid" id="clubid">
	                	{html_options options=$arrClubId }
						</select>
                	</div>
                </li> 
				<input type="hidden" name="personalid" id="personalid" value="{$personalid}" />
                <li>
                	<label for="fee">{$language.label.fee}:</label>
                    <div class="txt">
	                	<input type="text" class="text" name="fee" id="fee" value="{if isset($smarty.session.CONTRACT_INPUT)}{$smarty.session.CONTRACT_INPUT.fee}{/if}" autocomplete="false"/>
                	</div>
                </li>                          
                <li>
                	<label for="signed">{$language.label.signed}:</label>
                    <div class="txt">
	                	<input type="text" class="text" name="signed" id="signed" value="{if isset($smarty.session.CONTRACT_INPUT)}{$smarty.session.CONTRACT_INPUT.singed}{/if}" autocomplete="false" />
                	</div>
                </li>
				<li>
                	<label for="begin">{$language.label.begin}:</label>
                    <div class="txt">
	                	<input type="text" class="text" name="begin" id="begin" value="{if isset($smarty.session.CONTRACT_INPUT)}{$smarty.session.CONTRACT_INPUT.begin}{/if}" autocomplete="false" />
                	</div>
                </li>
				<li>
                	<label for="end">{$language.label.end}:</label>
                    <div class="txt">
	                	<input type="text" class="text" name="end" id="end" value="{if isset($smarty.session.CONTRACT_INPUT)}{$smarty.session.CONTRACT_INPUT.end}{/if}" autocomplete="false" />
                	</div>
                </li>
				<li>
                	<label for="expiry">{$language.label.expiry}:</label>
                    <div class="txt">
	                	<input type="text" class="text" name="expiry" id="expiry" value="{if isset($smarty.session.CONTRACT_INPUT)}{$smarty.session.CONTRACT_INPUT.expiry}{/if}" autocomplete="false" />
                	</div>
                </li>                
                <li>
                	<label for="description">{$language.label.description}:</label>
                    <div class="area">
                         <textarea rows="4" cols="50" name="description" id="description">{if isset($smarty.session.CONTRACT_INPUT)}{$smarty.session.CONTRACT_INPUT.description}{/if}</textarea>	                
                	</div>
                </li>
				<li>
                	<label for="ext">{$language.label.ext}:</label>
                    <div class="txt">
						<select name="ext">
	                	{html_options options=$language.contract.ext }
						</select>
                	</div>
                </li> 
                {if isset($parentid)}
				<input type="hidden" name="parentid" id="parentid" value="{$parentid}" />
                {/if}
                <li>
                	<label for="salary_in_week">{$language.label.salary_in_week}:</label>
                    <div class="txt">
	                	<input type="text" class="text" name="salary_in_week" id="salary_in_week" value="{if isset($smarty.session.CONTRACT_INPUT)}{$smarty.session.CONTRACT_INPUT.salary_in_week}{/if}" autocomplete="false" />
                	</div>
                </li>
				<li>
                	<label for="salary_unit">{$language.label.salary_unit}:</label>
                    <div class="txt">
						<select name="salary_unit">
	                	{html_options options=$language.contract.salary_unit }
						</select>
                	</div>
                </li> 				
                <li>
                 	<button type="submit"><strong>{$language.btn.add}</strong></button>
                    <button type="button" class="cancel" onclick="javascript:document.location.href='{$back}'"><strong>{$language.btn.cancel}</strong></button>
                </li>
            </ul>
        </form>        
    </article> 
</section>
{include file="common/footer.tpl"}
                
